//
//  BaseView.m
//  ShanDian
//
//  Created by 静静 on 15/7/11.
//  Copyright (c) 2015年 诺万科技. All rights reserved.
//

#import "BaseView.h"

@implementation BaseView

+ (instancetype)createView
{
//    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:self options:nil] firstObject];
    
    NSString *xibName = NSStringFromClass([self class]);
    NSArray *array = [[UINib nibWithNibName:xibName bundle:[NSBundle mainBundle]] instantiateWithOwner:self options:nil];
    if (array && [array count]) {
        return array[0];
    } else {
        return nil;
    }
}

@end
